SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68307: You see the note "Invalid argument to function DATDIF..." when you use a backslash character in the DATDIF() function

DetailsHotfixAboutRate It

Starting in the SAS® 9.4M7 (TS1M7) release, when you use a backslash (\) as the basis argument in the DATDIF() function, the SAS log then displays information that is similar to the following:

1    data a;
2     x=datdif(today(),today(),'act\act');
3    run;

NOTE: Invalid argument to function DATDIF(22517,22517,'act\act') at line 2 column 4.
x=. _ERROR_=1 _N_=1

To circumvent the problem, use the forward slash (/) instead. 

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M79.4_M79.4 TS1M79.4 TS1M7
z/OS 64-bit9.4_M79.4_M79.4 TS1M79.4 TS1M7
Microsoft® Windows® for x649.4_M79.4_M79.4 TS1M79.4 TS1M7
64-bit Enabled AIX9.4_M79.4_M79.4 TS1M79.4 TS1M7
64-bit Enabled Solaris9.4_M79.4_M79.4 TS1M79.4 TS1M7
HP-UX IPF9.4_M79.4_M79.4 TS1M79.4 TS1M7
Linux for x649.4_M79.4_M79.4 TS1M79.4 TS1M7
Solaris for x649.4_M79.4_M79.4 TS1M79.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.